package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.JinjitongzhiMapper;
import com.ruoyi.system.domain.Jinjitongzhi;
import com.ruoyi.system.service.IJinjitongzhiService;

/**
 * 紧急通知Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-09-05
 */
@Service
public class JinjitongzhiServiceImpl implements IJinjitongzhiService 
{
    @Autowired
    private JinjitongzhiMapper jinjitongzhiMapper;

    /**
     * 查询紧急通知
     * 
     * @param id 紧急通知主键
     * @return 紧急通知
     */
    @Override
    public Jinjitongzhi selectJinjitongzhiById(Long id)
    {
        return jinjitongzhiMapper.selectJinjitongzhiById(id);
    }

    /**
     * 查询紧急通知列表
     * 
     * @param jinjitongzhi 紧急通知
     * @return 紧急通知
     */
    @Override
    public List<Jinjitongzhi> selectJinjitongzhiList(Jinjitongzhi jinjitongzhi)
    {
        return jinjitongzhiMapper.selectJinjitongzhiList(jinjitongzhi);
    }

    /**
     * 新增紧急通知
     * 
     * @param jinjitongzhi 紧急通知
     * @return 结果
     */
    @Override
    public int insertJinjitongzhi(Jinjitongzhi jinjitongzhi)
    {
        return jinjitongzhiMapper.insertJinjitongzhi(jinjitongzhi);
    }

    /**
     * 修改紧急通知
     * 
     * @param jinjitongzhi 紧急通知
     * @return 结果
     */
    @Override
    public int updateJinjitongzhi(Jinjitongzhi jinjitongzhi)
    {
        return jinjitongzhiMapper.updateJinjitongzhi(jinjitongzhi);
    }

    /**
     * 批量删除紧急通知
     * 
     * @param ids 需要删除的紧急通知主键
     * @return 结果
     */
    @Override
    public int deleteJinjitongzhiByIds(Long[] ids)
    {
        return jinjitongzhiMapper.deleteJinjitongzhiByIds(ids);
    }

    /**
     * 删除紧急通知信息
     * 
     * @param id 紧急通知主键
     * @return 结果
     */
    @Override
    public int deleteJinjitongzhiById(Long id)
    {
        return jinjitongzhiMapper.deleteJinjitongzhiById(id);
    }
}
